package com.fh.client;


import com.fh.fallback.OrderSubmitClientFallback;

import com.fh.model.Orders;
import com.fh.model.vo.ShoppingCartVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "order-add",fallback = OrderSubmitClientFallback.class)
public interface OrderSubmitClient {
    @PostMapping("order/add")
    public List<ShoppingCartVO>  addOrder(@RequestBody Orders orders, @RequestParam("cids") String cids);


}
